package cn.edu.bupt.iocaop.demo.service.impl;

import cn.edu.bupt.iocaop.demo.dao.TestDao;
import cn.edu.bupt.iocaop.demo.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

@Service
public class TestServiceImpl implements TestService {
    private final TestDao testDao;

    public TestServiceImpl(TestDao testDao) {
        System.out.println("TestServiceImpl Constructor is called");
        this.testDao = testDao;
    }

    @Override
    public void save() {
        testDao.save();
        System.out.println("testService Save");
    }
}
